package com.ruoyi.project.manhua.webLook.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.manhua.webLook.service.MhClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


/**
 * 漫画章节 Controller
 *
 * @author yuan
 * @date 2021-01-13
 */
@Controller
@RequestMapping("/manhua/look/classify")
public class MhClassifyController extends BaseController
{
    private String prefix = "manhua/look";


    @Autowired
    private MhClassifyService mhClassifyService;

    /**
     * 首页请求
     * @return
     */
    @GetMapping("/{only}")
    public String classify(@PathVariable("only")String only)
    {
        return prefix+"/classify";
    }




    @PostMapping("/classifyData")
    @ResponseBody
    public  AjaxResult  classifyData(@RequestParam("num")Integer num,@RequestParam("page")Integer page,@RequestParam("type") String type){
        return AjaxResult.success(mhClassifyService.selectWebLimitList(num, page, type));
    }






}
